//
//  Book.h
//  OCDay2
//
//  Created by dllo on 16/5/23.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Student;
@interface Book : NSObject
{
    NSString *_name;
    CGFloat _price;
    NSString *_author;
    Student *_stu;
}
-(instancetype)initWithName:(NSString *)name withPrice:(CGFloat)price withAuthor:(NSString *)author;
+(instancetype)bookWithName:(NSString *)name withPrice:(CGFloat)price withAuthor:(NSString *)author;
-(void)myPrint;


//setter方法  设置器
-(void)setName:(NSString *)name;
//getter方法  访问器
-(NSString *)name;
-(void)setPrice:(CGFloat)price;
-(CGFloat)price;
-(void)setAuthor:(NSString *)author;
-(NSString *)author;
-(void)setStu:(Student *)stu;
-(Student *)stu;
@end
